package com.tour.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.tour.pojo.TrevalProject;

public interface TrevalProjectMapper {
    int deleteByPrimaryKey(Long trId);

    int insert(TrevalProject record);

    int insertSelective(TrevalProject record);

    TrevalProject selectByPrimaryKey(Long trId);

    int updateByPrimaryKeySelective(TrevalProject record);

    int updateByPrimaryKey(TrevalProject record);
    
    List<TrevalProject> selectList();

    List<TrevalProject> selectByNameAndProjectId(@Param("title")String title,@Param("projectId") Long productId);

    List<TrevalProject> selectByNameAndScenicIds(@Param("title")String title,@Param("scenicIdList")List<Integer> scenicIdList);
    
    int getTrCount();
}